package cn.kmia.hrm.pojo;

import net.sf.ehcache.CacheManager;
import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.ioc.loader.annotation.Inject;

import java.util.Date;

/**
 * @program: hrm
 * @description: 基础对象类
 * @author: 4K
 * @create: 2018-04-16 16:17
 **/
public abstract class BasePojo {

    @Inject
    protected CacheManager cacheManager;

    /**
     * 创建时间
     */
    @Column("ct")
    @Comment("创建时间")
    protected Date createTime;

    /**
     * 修改时间
     */
    @Column("ut")
    @Comment("修改时间")
    protected Date updateTime;

    /**
     * 操作人
     */
    @Column()
    @Comment("操作人")
    @ColDefine(type = ColType.VARCHAR, width = 20)
    private String opBy;

    @Column
    @Comment("删除标记")
    @ColDefine(type = ColType.BOOLEAN)
    private Boolean delFlag;

    public String getOpBy() {
        return opBy;
    }

    public void setOpBy(String opBy) {
        this.opBy = opBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Boolean getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Boolean delFlag) {
        this.delFlag = delFlag;
    }
}
